<div class="contents">
  <ol class="breadcrumb">
    <li><a href="#/index/panel">首页</a></li>
    <li><a href="#/simu/manager/list">私募经理列表</a></li>
    <li class="active">{{ id ? "编辑私募经理" : "新增私募经理"}}</li>
  </ol>
   <form class="form-horizontal" role="form" name="form" ng-submit="save()" novalidate> 
     
  
    <div class="form-group" ng-class="{'has-error':form.jjjlmc.$invalid}">
      <label class="col-sm-2 control-label">经理名称</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="经理名称" name="jjjlmc" ng-model="item.jjjlmc" required="required">
      </div>
    </div>    
    
    <div class="form-group" ng-class="{'has-error':form.jjjlbm.$invalid}" ng-show="!id">
      <label class="col-sm-2 control-label">经理编码</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" readonly="true" placeholder="经理编码" name="jjjlbm" ng-model="item.jjjlbm" required="required">
      </div>
      <a class="brand" ng-click="getJJBM()" href="">刷新经理编码</a>
    </div>    
     
    <div class="form-group" ng-class="{'has-error':form.gj.$invalid}">
      <label class="col-sm-2 control-label">国籍</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="国籍，如中国" name="gj" ng-model="item.gj" >
      </div>
    </div>    
  
    <div class="form-group" ng-class="{'has-error':form.xl.$invalid}">
      <label class="col-sm-2 control-label">学历</label>
      <div class="col-sm-5">
        <select class="form-control" name="xl" ng-model="item.xl" ng-options="m.value as m.text for m in dictMap['educationModel']" > </select>
      </div>
    </div>    
  
    <div class="form-group" ng-class="{'has-error':form.xb.$invalid}">
      <label class="col-sm-2 control-label">性别</label>
      <div class="col-sm-5">
        <select class="form-control" name="xb" ng-model="item.xb" ng-options="m.value as m.text for m in dictMap['sexModel']" > </select>
      </div>
    </div>    
  
    <div class="form-group" ng-class="{'has-error':form.csnf.$invalid}">
      <label class="col-sm-2 control-label">出生年份</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="出生年份" name="csnf" ng-model="item.csnf" >
      </div>
    </div>    
  
    <div class="form-group" ng-class="{'has-error':form.nl.$invalid}">
      <label class="col-sm-2 control-label">年龄</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="年龄" name="nl" ng-model="item.nl" >
      </div>
    </div>    
  
    <div class="form-group" ng-class="{'has-error':form.llbj.$invalid}">
      <label class="col-sm-2 control-label">履历背景</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="履历背景" name="llbj" ng-model="item.llbj" >
      </div>
    </div>    
  
    <div class="form-group" ng-class="{'has-error':form.drsmjlnx.$invalid}">
      <label class="col-sm-2 control-label">总任职年限</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="总任职年限" name="drsmjlnx" ng-model="item.drsmjlnx" >
      </div>
    </div>    
  
    <div class="form-group" ng-class="{'has-error':form.gglsmjjs.$invalid}">
      <label class="col-sm-2 control-label">现管理基金数</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="现管理基金数" name="gglsmjjs" ng-model="item.gglsmjjs" >
      </div>
    </div>    
  
    <div class="form-group" ng-class="{'has-error':form.glgdjjlx.$invalid}">
      <label class="col-sm-2 control-label">曾管理基金类型</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="曾管理基金类型" name="glgdjjlx" ng-model="item.glgdjjlx" >
      </div>
    </div>    
  
    <div class="form-group" ng-class="{'has-error':form.dqgzdsmjjgs.$invalid}">
      <label class="col-sm-2 control-label">当前基金公司</label>
      <div class="col-sm-5 simu-company-box row">
        <div class="col-sm-6">
          <div class="simu-company-search"><input type="text" ng-model="companyKw" placeholder="输入名称搜索基金公司"/></div>
          <ul class="simu-c-selecting">
            <li ng-repeat="c in simuCompanyListing" ng-click="selectCompany(c.id,$index,1)" title="{{c.gsmc}}">{{c.gsmc | truncate:14}}</li>
          </ul>
        </div>
        <div class="col-sm-6">
          <div class="simu-company-search">已选择：</div>
          <ul class="simu-c-selected">
            <li ng-repeat="c in simuCurCompanyListed" ng-click="unSelectCompany(c.id,$index,1)" title="{{c.gsmc}}">{{c.gsmc | truncate:14}}</li>
          </ul>
        </div>
      </div>
    </div>    
    
    <div class="form-group" ng-class="{'has-error':form.jjqc.$invalid}">
      <label class="col-sm-2 control-label">供职过的基金公司</label>
      <div class="col-sm-5 simu-company-box row">
        <div class="col-sm-6">
          <div class="simu-company-search"><input type="text" ng-model="companyKw" placeholder="输入名称搜索基金公司"/></div>
          <ul class="simu-c-selecting">
            <li ng-repeat="c in simuCompanyListing" ng-click="selectCompany(c.id,$index)" title="{{c.gsmc}}">{{c.gsmc | truncate:14}}</li>
          </ul>
        </div>
        <div class="col-sm-6">
          <div class="simu-company-search">已选择：</div>
          <ul class="simu-c-selected">
            <li ng-repeat="c in simuCompanyListed" ng-click="unSelectCompany(c.id,$index)" title="{{c.gsmc}}">{{c.gsmc | truncate:14}}</li>
          </ul>
        </div>
      </div>
    </div>
  
    <!--
    <div class="form-group" ng-class="{'has-error':form.dqgldsmjj.$invalid}">
      <label class="col-sm-2 control-label">当前基金</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="当前基金" name="dqgldsmjj" ng-model="item.dqgldsmjj" >
      </div>
    </div>
  
    <div class="form-group" ng-class="{'has-error':form.cglgdjj.$invalid}">
      <label class="col-sm-2 control-label">管理过的基金</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="管理过的基金" name="cglgdjj" ng-model="item.cglgdjj" >
      </div>
    </div>    
    -->
  
    <div class="form-group" ng-class="{'has-error':form.jjjljs.$invalid}">
      <label class="col-sm-2 control-label">
        基金经理简介
      </label>
      <div class="col-sm-7">
       <!-- <input type="text" class="form-control" placeholder="简介" name="jjjljs" ng-model="item.jjjljs" > -->
        <div class="ueditor" config="config" ready="ready" ng-model="item.jjjljs" style="height:300px;" ></div>
      </div>
    </div> 

<!--
    <div class="form-group" ng-class="{'has-error':form.jlzpdz.$invalid}">
      <label class="col-sm-2 control-label">照片地址(100x90)</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="照片地址" name="jlzpdz" ng-model="item.jlzpdz" >
      </div>
    </div> 
    
-->
    <div class="form-group" ng-class="{'has-error':form.jlzpdz.$invalid}">
      <label for="advertLinkInput" class="col-sm-2 control-label">
        照片地址(180x180)
      </label>
      <div class="col-sm-5">
        <input type="text" class="form-control" id="advertLinkInput" placeholder="照片地址" name="jlzpdz" ng-model="item.jlzpdz">
        <div class="btn btn-primary add-pic-btn">上传图片</div>
      </div>
    </div>
    <div class="form-group" ng-if="item.jlzpdz">
      <label class="col-sm-2 control-label"></label>
      <div class="col-sm-5">
        <img ng-src="{{item.jlzpdz | urlPrefixRender}}" />
      </div>
    </div>

    <div class="form-group">
      <div class="col-sm-offset-2 col-sm-5"><!--owner="{{item.createBy}}" -->
        <button type="submit" class="btn btn-default" has-auth where="btn" who="PRODUCT_EDIT" >提交</button>
      </div>
    </div>
  </form>
</div>
<div load-script src="'/static/jquery.jUploader-1.01.js?5'" call-back="" charset="utf-8" ></div>


